package jp.sourceforge.akjrcp.ffmpeg;

import com.akjava.lib.standards.process.ProcessPrinter;



	public class ProgressReadProcessPrinter implements ProcessPrinter{
		private ProgressReadListener progressReadListener;
		
		public void printOutput(String output) {
			//do nothing.
		}

		public void printError(String error) {
			if(FFMpegUtils.isProgressString(error)){
				if(progressReadListener!=null){
					progressReadListener.progress(error);
				}
			}
		}

		public ProgressReadListener getProgressReadListener() {
			return progressReadListener;
		}

		public void setProgressReadListener(ProgressReadListener progressReadListener) {
			this.progressReadListener = progressReadListener;
		}
		
		
	}


